﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Content/Site.Master" CodeBehind="manage_clients.aspx.vb" Inherits="CupsApp.Web.Form.manage_clients" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="tabs">
 <div class="tab"><a href ="users.aspx">Users</a></div> 
 <div class="tabSelected">Clients</div>
 <div class="tab"><a href="select_reports.aspx">Reports</a> </div> 
</div>
<div class="Content">
<div class="filler"></div>
    <div class="FullRow1">
        <center> <strong><asp:Label ID="lvlMsg" runat="server"  ForeColor="#00CC00" ></asp:Label></strong></center>
    </div> 
   <div class="FullRow1">
     <div class="filler"></div>
     <div class="FormHeading"
         <center><strong><asp:Label ID="lblBasicInfo" runat="server" Text="CLIENT MANAGEMENT"></asp:Label></strong></center>
    </div>
  </div> 
   <div class="FullRow1">
    <div class="filler"></div><br />
    <center>Search</center>
   </div><br /><br />
   <div class="FullRow1">
        <div class="ContentRow1"></div>
        <div class="ContentRow1">First Name:</div>
        <div class="ContentRow2"><asp:TextBox ID="txtFirstName" runat="server" Width="100%" /></div>
        
   </div>
   <div class="FullRow1">
   <div class="ContentRow1"></div>
   <div class="ContentRow1">Last Name:</div>
        <div class="ContentRow2"><asp:TextBox ID="txtLastName" runat="server" Width="100%" /></div>
   </div>
  <div class="filler"></div>
   <div class="FullRow1">

    <center><asp:Button ID="btnSearch" runat="server" Text="Search" /></center>
   </div>
   <div class="filler"></div>
   <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" Width="100%" 
        AllowSorting="True">
       <Columns>
            <asp:CommandField ShowDeleteButton="True" />
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="btnEnable"  runat="server" CausesValidation="false" 
                          CommandName="Enable" Text="Enable" CommandArgument='<%# Eval("ID") %>' ></asp:LinkButton>
                </ItemTemplate> 
                </asp:TemplateField>
           <asp:BoundField DataField="LastName" HeaderText="LastName" 
               SortExpression="LastName" />
           <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
               SortExpression="FirstName" />
           <asp:BoundField DataField="CurrentStatus" HeaderText="CurrentStatus" 
               SortExpression="CurrentStatus" />
           <asp:BoundField DataField="DateStarted" HeaderText="DateStarted" 
               SortExpression="DateStarted" />
           <asp:BoundField DataField="LastUpdateDays" HeaderText="LastUpdateDays" 
               SortExpression="LastUpdateDays" />
           <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" 
               Visible="False" />
           
           
       </Columns>
    </asp:GridView>

</div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnablePaging="True" 
        SelectMethod="GetAllClientSummary" 
        TypeName="CupsApp.Service.CupsDomainService" DeleteMethod="DisableClient" 
        SortParameterName="sortType">
        <DeleteParameters>
            <asp:Parameter Name="ID" Type="Int32" />
        </DeleteParameters>
        <SelectParameters>
            <asp:Parameter Name="maximumRows" Type="Int32" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="sortType" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    






</asp:Content>
